package com.eight.travel.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("place")
public class Place {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "景区的主键")
    private Integer pid;
    @ApiModelProperty(value = "景区首页图片")
    private String pic;
    @ApiModelProperty(value = "景区名")
    private String placename;
    @ApiModelProperty(value = "景区地址")
    private String placeaddress;
    @ApiModelProperty(value = "景区开放时间")
    @JsonFormat(pattern="HH:mm:s")
    @DateTimeFormat(pattern="HH:mm:s")
    private Date placeopentime;
    @ApiModelProperty(value = "景区官方电话")
    private String placetel;
    @ApiModelProperty(value = "景区公告信息")
    private String placeinfo;
    @ApiModelProperty(value = "景区热度")
    private Integer placehot;
    @ApiModelProperty(value = "景区点击量")
    private Integer placeclick;
    @ApiModelProperty(value = "景区介绍")
    private String placeintroduce;
    @ApiModelProperty(value = "景区门票")
    private Double money;
    @ApiModelProperty(value = "景区状态 0=未开放 1=已开放")
    private Integer status;
    @ApiModelProperty(value = "景区图片")
    @TableField(exist=false)
    private List<PlacePic> placepic;

}
